From: Florian Müllner Date: Fri, 29 Jan 2021 14:38:08 +0000 (+0100) Subject: overviewControls: Remove intermediate box X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~536 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ac3faac38ce5cbae834faedc59cd241fed22ae4e;p=gnome-shell.git overviewControls: Remove intermediate box Now that the workspace switcher moved into the view selector, the box only holds a single child. Cut out the middle man and add that directly to the parent. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index af420c528..e87c5042a 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -85,13 +85,7 @@ class ControlsManager extends St.Widget { }); this.add_actor(this._group); - const box = new St.BoxLayout({ - x_expand: true, - y_expand: true, - }); - box.add_child(this.viewSelector); - - this._group.add_child(box); + this._group.add_child(this.viewSelector); this._group.add_actor(this._dashFader); this.connect('destroy', this._onDestroy.bind(this)); diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 5a22cb215..6655ed31f 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -241,6 +241,7 @@ var ViewSelector = GObject.registerClass({ super._init({ name: 'viewSelector', x_expand: true, + y_expand: true, visible: false, });